﻿@model doufu.Model.users
<h2>
    @if (Model.user_id == 0)
    {
        @:Add User
    }
    else
    {
        @:Edit User
                }
</h2>
@using (Html.BeginForm())
{
    @Html.HiddenFor(x => x.user_id)
    @Html.LabelFor(x => x.user_name)
    @Html.EditorFor(x => x.user_name)
    @Html.ValidationMessageFor(model => model.user_name)
    <br />
    @Html.LabelFor(x => x.password)
    @Html.EditorFor(model => model.password)
    @Html.ValidationMessageFor(model => model.password)
    <br />
    @Html.LabelFor(x => x.email)
    @Html.EditorFor(x => x.email)
    @Html.ValidationMessageFor(model => model.email)
    <br />
    @Html.LabelFor(x => x.user_status)
    @Html.EditorFor(x => x.user_status)
    @Html.ValidationMessageFor(model => model.user_status)
    <br />
    @Html.LabelFor(x => x.openType)
    @Html.EditorFor(x => x.openType)
    @Html.ValidationMessageFor(model => model.openType)
    <br />
    @Html.LabelFor(x => x.openId)
    @Html.EditorFor(x => x.openId)
    @Html.ValidationMessageFor(model => model.openId)
    <br />
    @Html.LabelFor(x => x.accessToken)
    @Html.EditorFor(x => x.accessToken)
    @Html.ValidationMessageFor(model => model.accessToken)
    <br />
    <input type="submit" name="name" value="submit" />
}